<?php declare(strict_types=1);
/**
 * This file is part of Swoft.
 *
 * @link     https://swoft.org
 * @document https://swoft.org/docs
 * @contact  group@swoft.org
 * @license  https://github.com/swoft-cloud/swoft/blob/master/LICENSE
 */

namespace App\Validator;

use Swoft\Validator\Annotation\Mapping\IsString;
use Swoft\Validator\Annotation\Mapping\NotEmpty;
use Swoft\Validator\Annotation\Mapping\Validator;
use Swoft\Validator\Exception\ValidatorException;
/**
 * Class ArticleValidator
 *
 * @since 2.0
 *
 * @Validator(name="ArticleValidator")
 */
class ArticleValidator
{
    /**
     * @NotEmpty(message="tille 不能为空")
     * @IsString(message="tille 必须为字符串")
     *
     * @var string
     *
     */
    protected $title;

    /**
     * @NotEmpty(message="content 不能为空")
     * @IsString(message="content 必须为字符串")
     *
     * @var string
     */
    protected $content;
}
